---
layout: "default"
title: "Operator: ..<"
description: "Swift documentation for the '..<' operator."
root: "/v2.0"
---

<code class="language-swift">infix operator ..&lt; {
    associativity none
    precedence 135
}</code>

<h3>Declarations</h3>

<div class="declaration" id="func-dotdotlt-bound_-comparable_-bound-end_-bound">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt-bound_-comparable_-bound-end_-bound">func <wbr>..&lt; &lt;Bound : Comparable&gt;(<wbr>_:<wbr> Bound, end: Bound)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt-bound_-comparable_-bound-end_-bound"><div class="p">
    <p>Returns a half-open interval from <code>start</code> to <code>end</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func ..&lt;&lt;Bound : Comparable&gt;(start: Bound, end: Bound) -&gt; HalfOpenInterval&lt;Bound&gt;</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-dotdotlt-pos_-forwardindextype-where-pos_-comparable_-pos-end_-pos">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt-pos_-forwardindextype-where-pos_-comparable_-pos-end_-pos">func <wbr>..&lt; &lt;Pos :<wbr> ForwardIndexType where Pos : Comparable&gt;(<wbr>_:<wbr> Pos, end: Pos)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt-pos_-forwardindextype-where-pos_-comparable_-pos-end_-pos"><div class="p">
    <p>Forms a half-open range that contains <code>start</code>, but not <code>end</code>.</p>

<p><strong>Requires:</strong> <code>start &lt;= end</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func ..&lt;&lt;Pos : ForwardIndexType where Pos : Comparable&gt;(start: Pos, end: Pos) -&gt; Range&lt;Pos&gt;</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-dotdotlt-pos_-forwardindextype_-pos-maximum_-pos">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt-pos_-forwardindextype_-pos-maximum_-pos">func <wbr>..&lt; &lt;Pos : ForwardIndexType&gt;(<wbr>_:<wbr> Pos, maximum: Pos)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt-pos_-forwardindextype_-pos-maximum_-pos"><div class="p">
    <p>Forms a half-open range that contains <code>minimum</code>, but not
<code>maximum</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func ..&lt;&lt;Pos : ForwardIndexType&gt;(minimum: Pos, maximum: Pos) -&gt; Range&lt;Pos&gt;</code>
    
    
</div></div>
</div>
